Skip to content

feat: find + install commands (v0.6.0) - #1

Merged
verryp merged 8 commits into
mainfrom
feat/find-install
Aug 16, 2026
Merged

feat: find + install commands (v0.6.0)#1
verryp merged 8 commits into
mainfrom
feat/find-install

Conversation

@verryp

@verryp verryp commented Aug 15, 2026

Copy link
Copy Markdown
Owner

Summary

  • find <term...> — identifier search across all schema node kinds (tables, columns, enums, enum values incl. overlay value-sets, domains). Kind auto-detected, matching precedence exact → glob (*) → fuzzy (edit distance ≤2), --strict disables fuzzy, --format json for tooling. Complements query: find locates, query explains.
  • install claude [--global] — generates a Claude Code skill file (.claude/skills/dbmlgraph/SKILL.md) with the schema directory baked in (resolved from --schema-dir or git-style walk-up to .dbmlgraph.yml).
  • install agents — marker-delimited AGENTS.md section covering Codex, opencode, and other AGENTS.md-standard agents. Idempotent re-install, never touches user content outside its markers.
  • install --list, uninstall claude|agents.
  • DBML enum-value note now falls back into find's meaning output; overlay meaning still wins.
  • CHANGELOG 0.6.0 also covers the two unreleased commits shipping with this version (markdown-embedded DBML input, query adaptive budget).

Test plan

  • 102/102 vitest passing, tsc --noEmit clean
  • CLI smoke on fixture (md + json, glob, strict)
  • Real-schema smoke (56-table production schema): find cycle_id → 26 column hits, find KICKOFF → enum-value hit with correct usedBy, find "ratio_*" --strict → 19 glob hits
  • install/uninstall smoke in tmp dirs (claude project + global, agents marker idempotency)

🤖 Generated with Claude Code

verryp added 8 commits August 16, 2026 00:23
DBML enum-value hits now fall back to the EnumDef value's `note` when no
overlay meaning covers it (matches render/table.ts:58 behavior), instead of
silently dropping it. Column entries stay overlay-only per spec.

Added coverage for the previously-untested `domain` FindKind path (usedBy
resolves to member tables, md renderer prints "## Domain matches").
@verryp
verryp merged commit 6224f3b into main Aug 16, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant